spinbutton: Connect swipe gesture to the text entry
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Jun 2021 13:06:29 +0000 (15:06 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Jun 2021 13:17:56 +0000 (15:17 +0200)
commit1bf7f5eacbbf6ba10207e27e0789ad797d80d96b
tree046e08314abd9f001c519099e856343e4ea72e98
parent37acfcfcd51ff42c9132db19d4878cec0625ad37
spinbutton: Connect swipe gesture to the text entry

In the GTK3 days, the spin button was an entry, with buttons on
top, and the swipe gesture affected the input on the entry bits.
Now the spin button is a container, so this gesture in the capture
phase applies to all contained children (incl. buttons).

Attach this gesture to the entry itself, so the buttons are left
outside this business. The gesture is still in the capture phase
in order to prevent text selection/edition/etc to happen.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4008
gtk/gtkspinbutton.c